﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

[DataObject]
public class DataSources
{
    private List<User> m_users = new List<User>();

    public DataSources()
    {
        m_users.Add(new User { Username = "fvilers", Email = "fabian@vilers.net" });
        m_users.Add(new User { Username = "jdoe", Email = "jonh@doe.commmmmm" });
    }

    [DataObjectMethod(DataObjectMethodType.Select)]
    public IList<User> GetUsers()
    {
        return m_users;
    }
}
